package cn.zhouyafeng.itchat4j.game;


import cn.zhouyafeng.itchat4j.api.MessageTools;
import cn.zhouyafeng.itchat4j.core.GlobalConfig;

import java.util.*;

/**
 * 看图
 */
public class SeePicGame {

    private static String picPath = "static/image/pic/";
    private static String pic312Path = "static/image/312/";
    private static int picSize = 2;
    private static int pic312Size = 12;


    public static void seePic(String key, String type) {
        int size = 0;
        String path = "";
        if (type.equals(GameEnum.SEE_PIC.getCode())) {
            size = picSize;
            path = picPath;
        }else if(type.equals(GameEnum.SEE_PIC_312.getCode())) {
            size = pic312Size;
            path = pic312Path;
        }

        Integer num = new Random().nextInt(size) + 1;
        MessageTools.sendPicMsgByUserId(key, path + num + ".jpeg");
    }


    public static void main(String[] args) {


    }


}
